/*
 * @Author: Wulala
 * @Date: 2025-04-10 14:53:59
 * @LastEditTime: 2025-04-22 17:02:56
 * @LastEditors: Wulala
 * @Description: 
 * @FilePath: \exchange\public\static\admin\js\mall\deal_log.js
 * 可以输入预定的版权声明、个性签名、空行等
 */
define(["jquery", "easy-admin"], function ($, ea) {

    var init = {
        table_elem: '#currentTable',
        table_render_id: 'currentTableRenderId',
        index_url: 'mall.deal_log/index',
        add_url: 'mall.deal_log/add',
        edit_url: 'mall.deal_log/edit',
        delete_url: 'mall.deal_log/delete',
        export_url: 'mall.deal_log/export',
        modify_url: 'mall.deal_log/modify',
    };

    return {

        index: function () {
            ea.table.render({
                init: init,
                cols: [[
                    {type: 'checkbox'},
                    // {field: 'id', title: 'id'},
                    {field: 'create_time', search: 'range', title: '交易时间'},
                    {field: 'deal_no', title: '交易编号'},
                    {field: 'deal_money', title: '金额'},
                    {field: 'deal_balance', title: '余额'},
                    {field: 'deal_type_str', title: '交易类型'},
                    {field: 'remark', title: '备注'},
                    // {width: 250, title: '操作', templet: ea.table.tool},

                ]],
            });

            ea.listen();
        },
        add: function () {
            ea.listen();
        },
        edit: function () {
            ea.listen();
        },
    };
});